from django.db import models
from utils.BaseModel import BaseModel
# Create your models here.
from user.models import UserModel
from course.models import CourseModel
class CartModel(BaseModel):
    user=models.ForeignKey(UserModel,on_delete=models.CASCADE,verbose_name='用户',related_name="user")
    course=models.ForeignKey(CourseModel,on_delete=models.CASCADE,verbose_name="课程",related_name="course")
    selcted=models.BooleanField(default=True,verbose_name="是否选中")
    class Meta:
        db_table="fgcart"


